from .info import Info


class Over:
    def __init__(self):
        self.next = None
        self.finished = False
        self.score = 0
        self.timer = 0

    def draw(self, surface):
        surface.fill((0, 100, 0))
        self.info.draw(surface)

    def update(self, surface, keys):
        if self.timer == 0:
            print("Over score", self.score)
            self.info = Info("over", self.score)
            self.timer = 1
        self.draw(surface)
